// const DB = require('../module/mongodb');
const router = require('koa-router')();
router
  .get('/', async (ctx) => {
    let title = "sdfasdfasd";
    ctx.body = "";
    var res = await DB.find('user', {});
    // console.log(res);
    await ctx.render('index', {
      title: title,
      list: res
    });
  })
var weixinarticle = require('./weixin/weixinarticle');
var gongzhonghao = require('./weixin/gongzhonghao');
router.use('/weixinarticle', weixinarticle);
router.use('/gongzhonghao', gongzhonghao);
module.exports = router.routes();
